import { request } from '@/utils/request'
import { BreadRequest, CatItem } from './models'

export enum CatApi {
  GET_CAT_BY_BREEDS = 'https://api.thecatapi.com/v1/breeds',
}

export function getCatByCreeds(params: BreadRequest) {
  return request.get<CatItem[]>(CatApi.GET_CAT_BY_BREEDS, {
    headers: {
      'x-api-key': '0718cb9c-caa1-4235-b08c-8399496baf43',
    },
    params: params,
  })
}
